Conditions | 4 |
Total Lines | 5 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import Relation from "../Relation.js"; |
||
44 | |||
45 | private getValueByParentKey(parentProperty) { |
||
46 | const keyIndex = this.model.getIndexByKey(this.foreignKey); |
||
47 | return globalThis.Store.database().find(this.model.className, |
||
48 | [...keyIndex.get(this.$parent[parentProperty])?.values() ?? []] |
||
49 | ).first(); |
||
51 | } |